//
//  SFCAppDelegate.h
//  SVNForCocoa
//
//  Created by Jeremy Pereira on 06/12/2013.
//  Copyright (c) 2013 Jeremy Pereira. All rights reserved.
//

#import <Foundation/Foundation.h>

@class SFCDocumentController;
/*!
 *    @brief Application delegate.
 *
 *    Manages the overall application.  The main thing it does is manage the 
 *    document controller.
 *    @todo .svn is hard coded as the SVN directory.
 */
@interface SFCAppDelegate : NSObject <NSApplicationDelegate, NSOpenSavePanelDelegate>
/*!
 *    @brief The custom document controller for the app
 */
@property (strong) IBOutlet SFCDocumentController* documentController;

/*!
 *    @brief Open a Subversion directory.
 *
 *    Displays the open file dialog to select a Subversion directory to "open".
 *    When the user selects a directory, it is verified that it is in a 
 *    working copy and an error message is displayed if not.
 *
 *    @param sender Sender of the message.
 */
-(IBAction) openSvnDir: (id) sender;

/*!
 *    @brief Show the preference pane.
 *
 *    @param sender Sender of the action.
 */
-(IBAction) showPreferences: (id) sender;

@end
